package bit_pratice.day20;

import java.util.Scanner;

/**
 * 输入一行只包含小写字母的字符串
 * 输出反转后的字符串
 **/
public class 反转字符串 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();
        s=reverse(s);
        System.out.println(s);
    }
    //反转字符串s
    private static String reverse(String s) {
        StringBuilder sb=new StringBuilder();
        for (int i = s.length()-1; i >=0 ; i--) {
            sb.append(s.charAt(i));
        }
        String str=sb.toString();
        return str;
    }
}
